package cn.jonay.pdmreader.ui.model;

import cn.jonay.pdmreader.core.meta.Entity;
import cn.jonay.pdmreader.core.meta.Table;

import javax.swing.tree.DefaultMutableTreeNode;

/**
 * 说明
 *
 * @author zhaozhiguo
 * @version 1.0
 * @date 2021/2/8 17:56
 */
public class PdmTableModel extends DefaultMutableTreeNode {
    public PdmTableModel(Entity entity) {
        super(entity);
    }

    @Override
    public String toString() {
        Table obj = (Table) userObject;
        return obj.getCode() + " " + obj.getName();
    }
}